package stage1.operation.module2;

import java.math.BigDecimal;

// 手机卡类
public class SimCard {
    // 卡类型
    private CardType type;
    // 卡号
    private String phoneNumber;
    // 用户名
    private String username;
    // 密码
    private String password;
    // 账户余额
    private BigDecimal balance;
    // 通话时长（分钟）
    private int callDuration;
    // 上网流量
    private int internetTraffic;

    // 显示（卡号 + 用户名 + 当前余额）
    public void displayAccount() {
        System.out.println("手机号码:" + this.getPhoneNumber() + ",用户名:" + this.getUsername() + ",余额:" + this.balance);
    }

    public CardType getType() {
        return type;
    }

    public void setType(CardType type) {
        this.type = type;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public int getCallDuration() {
        return callDuration;
    }

    public void setCallDuration(int callDuration) {
        this.callDuration = callDuration;
    }

    public int getInternetTraffic() {
        return internetTraffic;
    }

    public void setInternetTraffic(int internetTraffic) {
        this.internetTraffic = internetTraffic;
    }
}
